﻿using Mirror;

namespace NetTest
{
    public class ElectricityBall:NetworkBehaviour
    {
        public float DestroyTime;
        private void Start()
        {
            Invoke("DestroySelf",DestroyTime);
        }

        [Server]
        private void DestroySelf() 
        {
            NetworkServer.Destroy(gameObject);
        }
    }
}
